﻿<!DOCTYPE html>
<!--岗位安全考核内容增加-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

</head>
<body>
    
<div id="app"  class="popupW100" v-cloak>   
        <el-form label-position="right"
                 ref="form"
                 :inline="true"
                 :model="formInline"
                 class="demo-form-inline"
                 style="margin-bottom: 15px;">
            <!--第一行-->
            <el-row>
                <el-col span="4" style="font-size: 14px;color: #606266;padding-top:10px;">
                    {{PostSafeAssessmentTemplateTable.postName}}
                </el-col>
                <el-col span="12" style="font-size: 14px;color: #606266;padding-top:10px;">
                    {{formInline.postName}}
                </el-col>
            </el-row>
            <!--第二行-->
            <el-row>
                <el-col span="12" style="font-size: 14px;color: #606266;padding-top:10px;">
                    {{PostSafeAssessmentTemplateTable.postSafeProductionContent}}
                </el-col>
                <el-col span="24">
                    <el-input type="textarea" v-model="formInline.postSafeProductionContent" autocomplete="off"></el-input>
                </el-col>
            </el-row>
            <!--第三行-->
            <el-row>
                <el-col span="12" style="font-size: 14px;color: #606266;padding-top:10px;">
                    {{PostSafeAssessmentTemplateTable.assessmentContent}}
                </el-col>
                <el-col span="24">
                    <el-input type="textarea" v-model="formInline.assessmentContent" autocomplete="off"></el-input>
                </el-col>
            </el-row>
            <!--按钮-->
            <br>
            <el-row type="flex" justify="end">
                <el-form-item>
                    <!--保存按钮-->
                    <el-button type="primary" @click="onSave">{{col.btnSave}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
    </div>
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                formInline: {
                    postName: "",
                    postSafeProductionContent: "",
                    assessmentContent: "",
                },
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                onSave: function () {
                   
                    //onSubmitForm(this, '/api/JG_JobsAssessTemplate/Save', mythis.Form);
                    //onSubmitForm(this, '/api/JG_JobsAssessTemplateDetail/Save', mythis.Form);
                },
                getData: function () {
                    getData(this, '/api/JG_JobsAssessTemplateDetail/get?id=' + this.id);
                },
            },
            mounted: function () {
                this.id = getUrlParam("id");
                this.getData();
                //列表高度自适应
                tablehigh(this);
            },
        })
    </script>
</body>
</html>
